home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hardcore Visual Basic 5.0 (2nd Edition)
/
Hardcore Visual Basic 5.0 - Second Edition (1997)(Microsoft Press).iso
/
Code
/
BUGWIZ~1.BAS
< prev
next >
Wrap
BASIC Source File
|
1997-06-14
|
686b
|
24 lines
Attribute VB_Name = "MBugWizMain"
Sub Main()
Dim sSwitch As String, sFile As String
sSwitch = GetToken(Command$, " ")
sFile = GetToken(sEmpty, " ")
If (sSwitch <> "/r") And (sSwitch <> "/d") Then
Dim frm As FBugWizard
Set frm = New FBugWizard
frm.Show
Else
Dim bug As CBugFilter
Set bug = New CBugFilter
IFilter(bug).Source = sFile
If sSwitch = "/r" Then
' Disable bug procedures
bug.FilterType = eftDisableBug
Else
' Enable bug procedures
bug.FilterType = eftEnableBug
End If
FilterTextFile bug
End If
End Sub